package com.wenx.v3auth.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * V3 认证授权服务 OpenAPI 配置
 * 
 * @author wenx
 */
@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI authOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("V3 认证授权服务 API")
                        .description("V3微服务架构 - 认证授权服务API文档")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("wenx")
                                .email("wenxpro@outlook.com")
                                .url("https://gitee.com/wenxpro"))
                        .license(new License()
                                .name("MIT License")
                                .url("https://opensource.org/licenses/MIT")));
    }
} 